//
//  MaskViewController.h
//  Pods
//
//  Created by Qianxia on 2016/12/22.
//
//

#import <UIKit/UIKit.h>

@interface MaskViewController : UIViewController


/**
 点击View隐藏，默认为YES
 */
@property (assign, nonatomic) BOOL isTouchViewHidden;

/**
 显示界面

 @param parentViewController 从哪个界面弹出， 传nil则默认为window.rootViewController
 */
- (void)showWithParentViewController:(UIViewController * _Nullable)parentViewController;


/**
 显示界面后执行，显示动画
 
 @param animations 显示动画
 @param completion 显示动画后执行
 */
- (void)showWithAnimations:(void (^ __nullable)(void))animations completion:(void (^ __nullable)(BOOL finished))completion;


/**
 隐藏界面
 
 @param animations 隐藏动画
 @param completion 动画完成后执行
 */
- (void)hiddenWithAnimations:(void (^ __nullable)(void))animations completion:(void (^ __nullable)(BOOL finished))completion;

@end
